  
  <div id="content" class="clear">
  <div id="main" class="clear">
  <div id="head" class="clear">
  <h1>Event</h1>
  <div id="actions"> 
  <a href="#" class="button secondary">Delete items</a> 
  <a href="#" class="button secondary">Export items</a>
<a href="<?php echo base_url('manage/eventPost'); ?>" class="button primary">New Event</a>
</div>
<!-- end page actions-->
</div>
<div id="topOptions" class="clear">
<form id="formBulkActions" action="#" method="get">
<div id="bulkActions"> 
<label for="selBulkActions">Selected items:</label> 
<select id="selBulkActions" onchange="doit(this,'comment')"> 
	<option selected="selected">- choose action -</option> 
	<option>delete</option> 
	<option>deactivate</option>
	<option>activate</option> 
	<option>export</option>
</select>
 </div>
 </form>
 <ul class="pagination">
   <li class="button small pagePrev">
    <a href="#" title="Previous page">Previous</a></li>
      <?php for($i=1;$i<=$count_page;$i++){?>
       <li> <a href="<?php echo base_url('comment/index')."/".$i; ?>"><?php echo $i;?></a></li>
      <?php }?>
           <li class="button small pageNext"> <a href="#" title="Next page">Next</a></li>
 </ul>
</div>
<?php echo validation_errors(); ?>
<?php echo form_open('#',array('name'=>'form1','id'=>'form1'));?>
<table id="tableItems" class="clear" cellpadding="0" cellspacing="0">
<thead>
   <tr><th class="colCheck"> <input id="cbSelectAll" type="checkbox" onclick="checkall()" /></th>
         <th class="colName left sortable"> <a href="#">Event title</a></th>
         <th class="colCount sortable sorted desc"> <a href="#">Date</a></th>
         <th class="colStatus sortable"> <a href="#">Status</a></th>
         <th class="colPosition">author</th>
         <th class="colActions right">Actions</th>
   </tr>
   </thead>
   <tbody id="articlelist">

   <?php
		  foreach($events as $key=>$row)
		  { 
		  	?>
   <?php if($key%2 == 0){?>		  	
   <tr class="odd"> 
       <td class="colCheck"> <input name="cbSelect[]" value="<?php echo $row['eid'];?>" type="checkbox" /></td> 
       <td class="colName left"> <a href="<?php echo base_url('home/show')."/".$row['eid']; ?>" target="_blank"><?php echo $row['title']; ?></a></td> 
       <td class="colCount"> <?php echo date('Y/m/d',$row['created']); ?></td> 
       <td class="colStatus"> 
       <a href="<?php echo base_url('manage/eventStatus').'/'.$row['eid'];?>">
        <?php if($row['status'] == '1'){?> <img src="<?php echo base_url()?>img/ico/icostatusgreen.png" alt="Active" />
        <?php }else{?>
        <img src="<?php echo base_url()?>img/ico/icostatusyellow.png" alt="Waiting" />
        <?php }?>
       </a></td> 
       <td class="colPosition">
       <?php echo $row['author'];?>
       </td> 
       <td class="colActions right"> 
       <a class="actionEdit" href="<?php echo base_url('manage/eventEdit')."/".$row['eid'];?>">Edit</a> 
       <a class="actionDelete" href="<?php echo base_url('manage/eventDrop')."/".$row['eid'];?>">Delete</a></td>
   </tr>
   <?php }else{ ?>
   <tr class="even"> 
      <td class="colCheck"> <input name="cbSelect[]" value="<?php echo $row['eid'];?>" type="checkbox" /></td> 
       <td class="colName left"> <a href="<?php echo base_url('home/show')."/".$row['eid']; ?>" target="_blank"><?php echo $row['title']; ?></a></td> 
       <td class="colCount"> <?php echo date('Y/m/d',$row['created']); ?></td> 
       <td class="colStatus"> 
       <a href="#">
        <?php if($row['status'] == 1){?> <img src="<?php echo base_url()?>img/ico/icostatusgreen.png" alt="Active" />
        <?php }else{?>
        <img src="<?php echo base_url()?>img/ico/icostatusyellow.png" alt="Waiting" />
        <?php }?>
       </a></td> 
       <td class="colPosition">
       <?php echo $row['author'];?>
       </td> 
       <td class="colActions right"> 
       <a class="actionEdit" onclick="replycomment(<?php echo $row['eid'];?>,<?php echo $row['eid'];?>)" href="#">Edit</a> 
       <a class="actionDelete" href="<?php echo base_url('comment/drop/id')."/".$row['eid'];?>">Delete</a></td>
   </tr>
  <?php } } ?>

</tbody>
</table>
</form>
<div id="bottomOptions" class="clear">
<form id="formViewOptions" action="#" method="get">
   <div id="viewOptions"> 
      <label for="selItemsPerPage">Items per page:</label> 
      <select id="selItemsPerPage"> 
      <option selected="selected">10</option> 
      <option>25</option>
       <option>50</option>
        <option>100</option>
      </select>
  </div>
</form>
  <ul class="pagination">
   <li class="button small pagePrev">
    <a href="#" title="Previous page">Previous</a></li>
      <?php for($i=1;$i<=$count_page;$i++){?>
       <li> <a href="<?php echo base_url('comment/index')."/".$i; ?>"><?php echo $i;?></a></li>
      <?php }?>
           <li class="button small pageNext"> <a href="#" title="Next page">Next</a></li>
 </ul>
 </div>
 </div>
 <div id="sidebar">
 <div id="boxFirst" class="sidebox clear"><h1>Sidebar form</h1><div class="boxContent clear"><form id="formFilters" class="sideForm" action="#" method="get"><fieldset>
<legend>Filters</legend><div class="field clear"> <label for="txtNameSide">Name:</label> 
<input id="txtNameSide" class="text full" type="text" value="" /></div><div class="field clear"> <span class="label">Status:</span><div class="multiple"> <input id="cbActive" class="checkbox" type="checkbox" checked="checked" /> <label for="cbActive">Active</label><br /> <input id="cbInactive" class="checkbox" type="checkbox" /> <label for="cbInactive">Inactive</label></div></div><div class="field clear"> <span class="label">Range:</span><div class="multiple"> <label for="txtRangeA">from:</label> <input id="txtRangeA" class="text third" type="text" value="0" /> <label for="txtRangeB">to:</label> <input id="txtRangeB" class="text third" type="text" value="1" /></div></div><div class="field clear"> <label for="selDropdownSide">Drop-down list</label> <select id="selDropdownSide" class="full"> <option selected="selected">-- select --</option> <option>Option A</option> <option>Option B</option> <option>Option C</option>
<option>Option D</option></select></div><div class="field clear"> 
<span class="label">Option select:</span>
<div class="multiple"> 
<input id="rbActive" class="radio" name="groupStatus" type="radio" checked="checked" /> 
<label for="rbActive">Active</label><br /> <input id="rbInactive" class="radio" name="groupStatus" type="radio" />
 <label for="rbInactive">Inactive</label></div></div><div class="last field clear"> 
 <label for="txtDateSide">Date select:</label> <input id="txtDateSide" class="text half" type="text" value="2010-10-24" /> 
 <a href="#"> <img class="calendar" src="<?php echo base_url()?>img/ico/icocalendar.png" alt="Calendar" title="Click and choose the date" /></a>
 </div> <input id="btnFind" class="button primary" type="submit" value="Find" />
 </fieldset>
 </form>
 </div>
 </div></div></div>
 <div id="push">&nbsp;</div>
 </div>